package combinationPattern;

import java.awt.*;

public class RectAngle extends BaseShape{
    int width;
    int height;
    public RectAngle(int x, int y, int width,int height,Color color) {
        super(x, y, color);
        this.width=width;
        this.height=height;
    }

    @Override
    public int getWidth() {
        return width;
    }

    @Override
    public int getHight() {
        return height;
    }

    @Override
    public void paint(Graphics graphics) {
        super.paint(graphics);
        graphics.drawRect(x,y,getWidth()-1,getHight()-1);
    }
}
